<template>
    <view>
        <web-view :webview-styles="webviewStyles" style="width: 100vw;" :src="url"></web-view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                webviewStyles: {
                    progress: {
                        color: '#FF3333'
                    }
                },
				url: ''
            }
        },
		onLoad(option) {
			var info = this.$storage.getJson('userinfo')
			if (option.url ==='ChatGPT'){
				this.url = 'https://chatgpt.innovazon.cn/innovazon/index.html?username='+info.UserName+'&password='+info.UserPassword
			} else {
				this.url = option.url
			}
		}
    }
</script>